import 'package:flutter/material.dart';
import 'package:flutter_base/config/app_color.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class TestCardBase extends StatelessWidget {
  final Widget child;
  final EdgeInsetsGeometry? padding;
  final Gradient? gradient;
  const TestCardBase({
    Key? key,
    required this.child,
    this.padding,
    this.gradient,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.circular(24.w),
        gradient: gradient,
        boxShadow: [
          BoxShadow(
            color: AppColor.color48484A.withOpacity(0.2),
            offset: const Offset(0, 1),
            blurRadius: 4,
          ),
        ],
      ),
      padding: padding ?? EdgeInsets.all(16.w),
      child: child,
    );
  }
}
